import { defineClientConfig } from "vuepress/client";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIcons from "@element-plus/icons-vue";

export default defineClientConfig({
  enhance({ app, router, siteData }) {
    // 在vuepress markdown中使用element-plus
    app.use(ElementPlus);
    // 注册Element Plus图标
    for (const [key, component] of Object.entries(ElementPlusIcons)) {
      app.component(key, component);
    }
  },
  setup() {},
  layouts: {},
  rootComponents: [],
});
